get
Returns the element by the specified index
.
The type mapping rules are the following:
| JavaScript | Java |
|--------------------|----------------|
| Number | Double |
| String | String |
| Boolean | Boolean |
| null and undefined | null |
| Node | JsObject, Node |
| ArrayBuffer | JsArrayBuffer |
| Array | JsArray |
| Set | JsSet |
| Map | JsMap |
| Object | JsObject |
| Proxy Object | Object |
Content copied to clipboard
For proxy objects, the corresponding injected Java object is returned.
Return
the element by the specified index
Parameters
<T>
the result type according to the type mapping rules
index
the element's index
Throws
when index
is negative or exceeds the array size
when the JavaScript object is already disposed or invalid